package time;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
        while (s.hasNextInt()) 
        {
        	int a=s.nextInt();
        	int count=0;
        	if(a<0)System.out.println("0");
        	else if(a==0)System.out.println("32");
        	else
        	{
        		while(a!=0)
        		{
        			a=a/2;
        			count++;
        		}
        		System.out.println(32-count);
        	}
        	
        }
	}

}
